const { ccclass, property } = cc._decorator;
import SoundMgr from '../SoundMgr';

@ccclass
export default class skillItemControl extends cc.Component {
    @property(cc.Sprite)
    icon: cc.Sprite = null;
    @property(cc.Label)
    title: cc.Label = null;
    @property(cc.Label)
    explain: cc.Label = null;
    @property(cc.Label)
    attribute: cc.Label = null;
    @property(cc.Label)
    count: cc.Label = null;
    _SkillId: string = "";
    _count: number = 1;
    // _SoundMgr: SoundMgr = null;

    // onLoad() {
    //     this.node.on(cc.Node.EventType.TOUCH_START, this.Unload, this);
    // }

    showCount() {
        this.count.string = this._count.toString();
    }

    // Unload() {
    //     this._SoundMgr.play("click1");
    // }
}
